package com.rp.validate;

import com.rp.news.util.UrlUtil;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class CheckUrlValidate implements ConstraintValidator<CheckUrl,String> {
    @Override
    public boolean isValid(String url, ConstraintValidatorContext constraintValidatorContext) {
        boolean reuslt = UrlUtil.verifyUrl(url);
        return reuslt;
    }
}
